package com.ruoyi.system.service.award.competition.impl;

import java.util.List;

import com.ruoyi.system.domain.award.competition.CompetitionAwardTeacher;
import com.ruoyi.system.mapper.award.competition.CompetitionAwardTeacherMapper;
import com.ruoyi.system.service.award.competition.ICompetitionAwardTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 竞赛获奖作品作品指导老师子对象 Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-29
 */
@Service
public class CompetitionAwardTeacherServiceImpl implements ICompetitionAwardTeacherService
{
    @Autowired
    private CompetitionAwardTeacherMapper competitionAwardTeacherMapper;

    /**
     * 查询竞赛获奖作品作品指导老师子对象 
     * 
     * @param id 竞赛获奖作品作品指导老师子对象 主键
     * @return 竞赛获奖作品作品指导老师子对象 
     */
    @Override
    public CompetitionAwardTeacher selectCompetitionAwardTeacherById(Long id)
    {
        return competitionAwardTeacherMapper.selectCompetitionAwardTeacherById(id);
    }

    /**
     * 查询竞赛获奖作品作品指导老师子对象 列表
     * 
     * @param competitionAwardTeacher 竞赛获奖作品作品指导老师子对象 
     * @return 竞赛获奖作品作品指导老师子对象 
     */
    @Override
    public List<CompetitionAwardTeacher> selectCompetitionAwardTeacherList(CompetitionAwardTeacher competitionAwardTeacher)
    {
        return competitionAwardTeacherMapper.selectCompetitionAwardTeacherList(competitionAwardTeacher);
    }

    /**
     * 新增竞赛获奖作品作品指导老师子对象 
     * 
     * @param competitionAwardTeacher 竞赛获奖作品作品指导老师子对象 
     * @return 结果
     */
    @Override
    public int insertCompetitionAwardTeacher(CompetitionAwardTeacher competitionAwardTeacher)
    {
        return competitionAwardTeacherMapper.insertCompetitionAwardTeacher(competitionAwardTeacher);
    }

    /**
     * 修改竞赛获奖作品作品指导老师子对象 
     * 
     * @param competitionAwardTeacher 竞赛获奖作品作品指导老师子对象 
     * @return 结果
     */
    @Override
    public int updateCompetitionAwardTeacher(CompetitionAwardTeacher competitionAwardTeacher)
    {
        return competitionAwardTeacherMapper.updateCompetitionAwardTeacher(competitionAwardTeacher);
    }

    /**
     * 批量删除竞赛获奖作品作品指导老师子对象 
     * 
     * @param ids 需要删除的竞赛获奖作品作品指导老师子对象 主键
     * @return 结果
     */
    @Override
    public int deleteCompetitionAwardTeacherByIds(Long[] ids)
    {
        return competitionAwardTeacherMapper.deleteCompetitionAwardTeacherByIds(ids);
    }

    /**
     * 删除竞赛获奖作品作品指导老师子对象 信息
     * 
     * @param id 竞赛获奖作品作品指导老师子对象 主键
     * @return 结果
     */
    @Override
    public int deleteCompetitionAwardTeacherById(Long id)
    {
        return competitionAwardTeacherMapper.deleteCompetitionAwardTeacherById(id);
    }
}
